﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SCPutils;

namespace SPC.Classes
{
    class Person : BasicObject
    {
        private static string PERSON_ID = "id";
        private static string PERSON_ATTRIB_NAME = "name";
        private static string PERSON_ATTRIB_ADDRESS = "address";
        

        private List<Penalty> listPenalties;
        
        public Person() { }

        public string getID()
        {
            return this.dictData[PERSON_ID];
        }
        public void setID(string strValue)
        {
            this.dictData[PERSON_ID] = Utils.Data._sql(strValue);
        }

        public string getName()
        {
            return this.dictData[PERSON_ATTRIB_NAME];
        }
        public void setName(string strValue)
        {
            this.dictData[PERSON_ATTRIB_NAME] = Utils.Data._sql(strValue);
        }

        public string getAddress()
        {
            return this.dictData[PERSON_ATTRIB_ADDRESS];
        }
        public void setAddress(string strValue)
        {
            this.dictData[PERSON_ATTRIB_ADDRESS] = Utils.Data._sql(strValue);
        }



        public List<Penalty> getPenalties()
        {
            return this.listPenalties;
        }
        public void setAddress(List<Penalty> listPenalties)
        {
            this.listPenalties = listPenalties;
        }

    }
}
